package hmvictor.jpql.nodes;

import java.io.File;
import java.util.List;
import org.openide.nodes.ChildFactory;
import org.openide.nodes.Node;

/**
 *
 * @author Victor
 */
public abstract class FileChildrenFactory extends ChildFactory<File> {
    private final List<File> jarFiles;

    public FileChildrenFactory(List<File> jarFiles) {
        this.jarFiles=jarFiles;
    }

    @Override
    protected boolean createKeys(List<File> list) {
        list.addAll(jarFiles);
        return true;
    }

    public void refreshChildren(){
        refresh(true);
    }
    
}
